package design.Flyweight;

/**
 * Created by looper on 2017/8/17.
 */
public class ConcreteFlyweight implements Flyweight {
  //这里指的是共享的对象的那部分相同的内蕴状态
  private String name;

  public ConcreteFlyweight(String name){
    this.name = name;
  }

  @Override
  public void operation() {
    System.out.println("name = "+name);
  }
}
